package com.example.schoolguider.service;

import com.example.schoolguider.mapper.FileMapper;
import com.example.schoolguider.model.File;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wjc
 * @date 2024/7/1 10:37
 */
@Service
public class FileService {
    @Autowired
    FileMapper fileMapper;
    public boolean insertFile(File file) {
        return fileMapper.insertFile(file);
    }

    public List<File> listFile(File file) {
        return fileMapper.listFile(file);
    }
}
